﻿using System;

namespace KvDbApi
{
    public static class ExpirationPolicy
    {
        private static TimeSpan defaultTTL = new TimeSpan(0, 30, 0);

        public static TimeSpan DefaultTimeToLive
        {
            get
            {
                return defaultTTL;
            }

            set
            {
                defaultTTL = value;
            }
        }

        public static TimeSpan MaxTimeToLive
        {
            get
            {
                return TimeSpan.FromDays(3650);
            }
        }
    }
}
